import Vue from 'vue'


//css
import "./css/app.css"


// mint ui
// import { Header, TabItem, Swipe, SwipeItem, Button, Lazyload } from 'mint-ui';
// Vue.component(Header.name, Header);
// Vue.component(TabItem.name, TabItem);
// Vue.component(Swipe.name, Swipe);
// Vue.component(SwipeItem.name, SwipeItem);
// Vue.component(Button.name, Button);
// Vue.use(Lazyload)
import MintUi from 'mint-ui';
Vue.use(MintUi)

// mui
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'


// router
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import router from "./router.js"


// vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)

Vue.http.options.root = "http://127.0.0.1:8080/"

// date  格式化工具
import "./js/date-util.js"

//定义一个全局的 DateFormat 事件格式化过滤器
Vue.filter("DateFormat", function(dateString, formatString = "yyyy-MM-dd hh:mm:ss") {
    var dt = new Date(dateString)
    return dt.format(formatString)
})

import app from "./App.vue"
var vm = new Vue({
    el: "#app",
    render: c => c(app),
    router
})